import http from './index'

export const getList = async () => await http.get('kgd/list')

export const getDetailApi = async (id,type) => await http.get(`kgd/get/?id=${ id }&bizType=${type}`)

export const getMoreDetailApi = async (data) => await http.post('kgd/more', data)

export const getMoreYearDetailApi = async (data) => await http.post('kgd/year/more', data)

export const getSearchApi = async (data) => await http.post('kgd/search', data)

export const insertMailboxApi = async (data) => await http.post('kgd/mailbox/insert', data)
// export const getMailboxListApi = async (data) => await http.post('kgd/mailbox/page/list', data)
export const getMessageListApi = async (data) => await http.post('kgd/message/list', data)
export const getQuickListApi = async () => await http.get('kgd/get/quick')
export const getMailboxDetailApi = async (id) => await http.get(`kgd/mailbox/get/${ id }`)
export const getSwebListApi = async () => await http.get('kgd/get/sweb')
export const refreshApi = async () => await http.get('kgd/refresh/cache')
export const getTopicListApi = async () => await http.get('kgd/get/topic/web')
export const getYwListApi = async () => await http.get('kgd/ywList')
export const getMailboxListApi = async (data) => await http.post('kgd/mailbox/list',data)


